<?php

$task = $_GET['task'];

$xml2 = "http://cp.jeth-ro.com/RSS/".$task.".php?task=".$task."&sid=".rand(1,100000);

$xmlDoc2 = new DOMDocument();
$xmlDoc2->load($xml2);

$channel2=$xmlDoc2->getElementsByTagName('channel')->item(0);
$channel2_title = $channel2->getElementsByTagName('title')->item(0)->childNodes->item(0)->nodeValue;
$channel2_link = $channel2->getElementsByTagName('link')->item(0)->childNodes->item(0)->nodeValue;
$channel2_show = $channel2->getElementsByTagName('show')->item(0)->childNodes->item(0)->nodeValue;


	$y=$xmlDoc2->getElementsByTagName('item');
	for ($i=0; $i<$channel2_show; $i++){
	  $title2 = $y->item($i)->getElementsByTagName('title')->item(0)->childNodes->item(0)->nodeValue;
	  $link2 = $y->item($i)->getElementsByTagName('link')->item(0)->childNodes->item(0)->nodeValue;
	  $job2 = $y->item($i)->getElementsByTagName('job')->item(0)->childNodes->item(0)->nodeValue;
	  echo  "<b>".$job2."</b> <a href='" . $link2 . "' target='_blank'>" . $title2 . "</a><br />";
	}

?>